*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.15;
    color: #303133;
    background-color: #fff;
}

a {
    color: mix(#fff, $--color-primary, 20%);
    text-decoration: none;
    &:focus,
    &:hover {
        color: $--color-primary;
    }
}

img {
    vertical-align: middle;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}


/* Utils
------------------------------ */

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}


/* Animation
------------------------------ */

.fade-enter-active,
.fade-leave-active {
    transition: opacity .5s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}


/* Reset element-ui
------------------------------ */

.site-wrapper {
    .el-pagination {
        margin-top: 15px;
        text-align: right;
    }
}


/* Layout
------------------------------ */

.site-wrapper {
    position: relative;
    min-width: 1180px;
}


/* Menu */


/* Sidebar fold
------------------------------ */

.site-sidebar--fold {
    .site-navbar__header,
    .site-navbar__brand,
    .site-sidebar,
    .site-sidebar__inner,
    .el-menu.site-sidebar__menu {
        width: 64px;
    }
    .site-navbar__body,
    .site-content__wrapper {
        margin-left: 64px;
    }
    .site-navbar__brand {
        &-lg {
            display: none;
        }
        &-mini {
            display: inline-block;
        }
    }
    .site-sidebar,
    .site-sidebar__inner {
        overflow: hidden;
    }
    .site-sidebar__menu-icon {
        margin-right: 0;
        font-size: 20px;
    }
    .site-content--tabs>.el-tabs>.el-tabs__header {
        left: 64px;
    }
}

// animation
.site-navbar__header,
.site-navbar__brand,
.site-navbar__body,
.site-sidebar,
.site-sidebar__inner,
.site-sidebar__menu.el-menu,
.site-sidebar__menu-icon,
.site-content__wrapper,
.site-content--tabs>.el-tabs .el-tabs__header {
    transition: inline-block .3s, left .3s, width .3s, margin-left .3s, font-size .3s;
}


/* Navbar
------------------------------ */

.site-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    height: 60px;
    //box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    //background-color: $navbar--background-color;
    &--inverse {
        .site-navbar__body {
            background-color: transparent;
        }
        .el-menu {
            >.el-menu-item,
            >.el-submenu>.el-submenu__title {
                color: #fff;
                &:focus,
                &:hover {
                    color: #fff;
                    background-color: mix(#000, $navbar--background-color, 15%);
                }
            }
            >.el-menu-item.is-active,
            >.el-submenu.is-active>.el-submenu__title {
                border-bottom-color: mix(#fff, $navbar--background-color, 85%);
            }
            .el-menu-item i,
            .el-submenu__title i,
            .el-dropdown {
                color: #ccc;
            }
        }
        .el-menu--popup-bottom-start {
            background-color: $navbar--background-color;
        }
    }
    &__header {
        position: relative;
        float: left;
        width: 230px;
        height: 60px;
        overflow: hidden;
        background-color: #4c7edf;
    }
    &__brand {
        display: table-cell;
        vertical-align: middle;
        width: 230px;
        height: 60px;
        margin: 0;
        line-height: 60px;
        font-size: 20px;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        color: #fff;
        &-lg,
        &-mini {
            margin: 0 5px;
            color: #fff;
            &:focus,
            &:hover {
                color: #fff;
                text-decoration: none;
            }
        }
        &-mini {
            display: none;
        }
    }
    &__switch {
        font-size: 18px;
        border-bottom: none !important;
    }
    &__avatar {
        border-bottom: none !important;
        * {
            vertical-align: inherit;
        }
        .el-dropdown-link {
            >img {
                width: 32px;
                height: auto;
                margin-right: 5px;
                border-radius: 100%;
                vertical-align: middle;
            }
            >svg {
                font-size: 10px;
                vertical-align: middle;
                color: #999;
            }
        }
    }
    &__body {
        text-align: center;
        position: relative;
        margin-left: 230px;
        padding-right: 15px;
        color: white;
        //background: #ffffff;
        border-bottom: solid 1px #ebeef5;
        background-color: rgba(89, 128, 246, .9);
    }
    &__menu {
        float: left;
        background-color: transparent;
        border-bottom: 0;
        &--right {
            float: right;
        }
        a:focus,
        a:hover {
            text-decoration: none;
        }
        .el-menu-item,
        .el-submenu>.el-submenu__title {
            height: 60px;
            line-height: 60px;
        }
        .el-submenu>.el-menu {
            top: 55px;
        }
        .el-badge {
            display: inline;
            z-index: 2;
            &__content {
                line-height: 16px;
            }
        }
    }
}


/* Sidebar
------------------------------ */

.site-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 1020;
    width: 230px;
    overflow: hidden;
    &--dark,
    &--dark-popper {
        background-color: $sidebar--background-color-dark;
        .site-sidebar__menu.el-menu,
        >.el-menu--popup {
            background-color: $sidebar--background-color-dark;
            .el-menu-item,
            .el-submenu>.el-submenu__title {
                color: $sidebar--color-text-dark;
                &:focus,
                &:hover {
                    color: mix(#fff, $sidebar--color-text-dark, 50%);
                    background-color: mix(#fff, $sidebar--background-color-dark, 9.5%);
                }
            }
            .el-menu,
            .el-submenu.is-opened {
                background-color: mix(#000, $sidebar--background-color-dark, 32%);
            }
            .el-menu-item.is-active,
            .el-submenu.is-active>.el-submenu__title {
                color: mix(#fff, $sidebar--color-text-dark, 100%);
                //background-color: #00537d;
                background-color: #495476;
                color: #fff;
            }
        }
    }
    &__inner {
        position: relative;
        z-index: 1;
        width: 265px;
        height: 100%;
        //padding-bottom: 15px;
        overflow-y: scroll;
        .el-scrollbar__wrap {
            overflow-x: hidden;
        }
    }
    &__menu.el-menu {
        width: 230px;
        border-right: 0;
    }
    &__menu-icon {
        width: 24px;
        margin-right: 5px;
        text-align: center;
        font-size: 16px;
        color: inherit !important;
    }
}


/* Content
------------------------------ */

.site-content {
    position: relative;
    &__wrapper {
        position: relative;
        padding-top: 60px;
        margin-left: 230px;
        min-height: 100%;
        background: $content--background-color;
    }
    &--tabs {
        padding: 40px 0 0;
    }
    >.el-tabs {
        >.el-tabs__header {
            //display: none;
            position: fixed;
            top: 60px;
            left: 230px;
            right: 0;
            z-index: 930;
            padding: 0 55px 0 15px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
            background-color: #fff;
            >.el-tabs__nav-wrap {
                margin-bottom: 0;
                &:after {
                    //display: none;
                }
            }
        }
        >.el-tabs__content {
            >.site-tabs__tools {
                position: fixed;
                top: 60px;
                right: 0;
                z-index: 931;
                height: 40px;
                padding: 0 12px;
                font-size: 16px;
                line-height: 40px;
                background-color: $content--background-color;
                cursor: pointer;
                .el-icon--right {
                    margin-left: 0;
                }
            }
        }
    }
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.icon-svg__shezhi {
    color: #ffffff;
}

.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,
.el-menu--horizontal>.el-submenu .el-submenu__title:hover {
    background-color: rgba(14, 52, 169, 0.7);
}

.el-dropdown {
    color: #ffffff;
}

.el-dialog__body {
    overflow: scroll !important;
}

.link {
    color: #19678E;
    cursor: pointer;
}

.search {
    padding: 20px 0px 5px 0px;
    border: 1px solid #f9f5f5;
    border-left: none;
    border-right: none;
}

.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    background-color: #1a678e;
    color: #fff;
}

.el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
.el-table__body tr.current-row>td,
.el-table__body tr.hover-row.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped>td,
.el-table__body tr.hover-row>td {
    background-color: #1a678e !important;
    color: #fff;
}

.el-tree-node__content {
    height: 30px !important;
}